package com.xdf.xzymanagementsystem.service;
import com.mybatisflex.core.service.IService;
import com.xdf.xzymanagementsystem.entity.OrderDetail;
import com.xdf.xzymanagementsystem.entity.OrderMain;
import com.xdf.xzymanagementsystem.entity.OrderMainDTO;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description : 服务层接口，由代码生成器自动生成
 * @Author : chanchaw
 * @Date : 2025-3-21 18:43:41
 */
public interface OrderMainService extends IService<OrderMain> {
    //=================以上是自动生成的代码，自定义代码请写在下面==================
    List<Map<String, Object>> selectAllDTO(Date sdate, Date edate, int flag);

    OrderMainDTO insertDTO(OrderMainDTO record) throws Exception;

    OrderMainDTO selectDTO(Integer id);

    OrderMainDTO updateDTO(OrderMainDTO record);

    void deleteByIds(List<Integer> ids);

    OrderMainDTO selectByOrderNoDTO(String orderNo, int flag);

    List<OrderDetail> selectByOrderDetail(String orderNo);

    List<Map<String, Object>> listQuery();

    List<Map<String, Object>> listQueryAll();

    List<Map<String, Object>> selectAllsum(Date sdate, Date edate, int flag);

    List<Map<String, Object>> selectAllmain(Date sdate, Date edate, int flag);

    List<Map<String, Object>> selectAlldetail(String orderNo);
}